setPaddingRelative

open fun setPaddingRelative(@NonNull view: View, @Px start: Int, @Px top: Int, @Px end: Int, @Px bottom: Int)(source)

Deprecated

Call setPaddingRelative directly.

Sets the relative padding. The view may add on the space required to display the scrollbars, depending on the style and visibility of the scrollbars. So the values returned from getPaddingStart, getPaddingTop, getPaddingEnd and getPaddingBottom may be different from the values set in this call.

Parameters

view

The view on which to set relative padding

start

the start padding in pixels

top

the top padding in pixels

end

the end padding in pixels

bottom

the bottom padding in pixels